package cn.neusoft.mapper;

import cn.neusoft.domain.Warehouse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WarehouseMapper {

    void add(Warehouse warehouse);

    void delete(Long warehouseId);

    void update(Warehouse warehouse);

    List<Warehouse> getAll();

    Warehouse getById(Long warehouseId);

    List<Warehouse> getByWarehouseName(@Param("warehouseName") String warehouseName);

    List<Warehouse> getWarehousesByPage(@Param("start") int start, @Param("pageSize") int pageSize);

    int getTotalCount();
    List<Warehouse> getWarehouseByLevel(Integer warehouse_level);

}
